package DBLayer;

import java.sql.SQLException;
import java.util.ArrayList;

import ExceptionLayer.CustomException;
import ModelLayer.Treatment;

public interface IFDBTreatment 
{
	public ArrayList<Treatment> getTreatmentsByCatId(int catId);
	
	public ArrayList<Treatment> getAllTreatmentsBySearchword(String word);
	
	public void updateTreatment(Treatment treatment) throws CustomException;
	
	public Treatment getTreatmentById(int id);
	
	public void insertTreatment(Treatment treatment) throws CustomException;
	
	public int getMax();
	
	public void deleteTreatmentById(int id) throws CustomException, SQLException;
}
